<?php echo $this->Session->flash(); ?>
<div  id="loadvc" style="display: none;">
    <?php echo $html->image('loading.gif', array('border' => "0", 'align' => 'center')); ?>
</div>
<h1>38.1 Si no hay estudios, a su criterio cúal es la vocación productiva del suelo? Estime el área aproximada .</h1>
<fieldset>
   
    <table border="1">
        <thead>

            <tr>
                <td>TIPO</td>
                <td>Hectareas</td>
                <td colspan="2"></td>
            </tr>

        </thead>
        <tbody>
            <?php foreach ($vocations as $vc): ?>

                <tr>
                    <td><?php echo $vc['ProductiveVocation']['tipo']; ?></td>
                    <td><?php echo $vc['ProductiveVocation']['hectareas']; ?></td>
                    <td><?php 
                    if ($usuario['User']['group_id'] != 5 && $usuario['User']['group_id'] != 6 && $visto_bueno['Poll']['visto_bueno'] != 'Si') {
                        echo $ajax->link("Editar", array('controller' => 'ProductiveVocations', "action" => "edit", $vc['ProductiveVocation']['id']), array('update' => 'vocacion', 'indicator' => 'loadvc'));
                    } ?></td>
                    <td><?php 
                    if ($usuario['User']['group_id'] != 5 && $usuario['User']['group_id'] != 6 && $visto_bueno['Poll']['visto_bueno'] != 'Si') {
                        echo $ajax->link("Eliminar", array('controller' => 'ProductiveVocations', "action" => "delete", $vc['ProductiveVocation']['id'],$this->data['ProductiveVocation']['poll_id']), array('update' => 'vocacion', 'indicator' => 'loadvc'),'¿Desea Eliminar El Registro?');
                    }
                     ?></td>              
                </tr>
            <?php endforeach; ?>
        </tbody>
    </table>
    <?php 
    if ($usuario['User']['group_id'] != 5 && $usuario['User']['group_id'] != 6 && $visto_bueno['Poll']['visto_bueno'] != 'Si') {
        echo $ajax->link("Adicionar", array('controller' => 'ProductiveVocations', "action" => "add", $this->data['ProductiveVocation']['poll_id']), array('update' => 'vocacion', 'indicator' => 'loadvc'));
    }
     ?>
</fieldset>
